package model;

import java.io.Serializable;
import java.sql.Time;
import java.util.HashMap;
import java.util.UUID;

public class WIFIsignature implements Serializable{
	
	private static final long serialVersionUID = 752647235612786147L;
	
	private final UUID deviceUUID;
	private final HashMap<String, Integer> signalSignature;
	private Time time;
	
	public WIFIsignature(UUID deviceUUID, long timeMiliseconds) {
		this.deviceUUID = deviceUUID;
		signalSignature = new HashMap<String, Integer>();
		time = new Time(timeMiliseconds);
	}
	
	public void addAP(String APMACAddress, int SSID){
		signalSignature.put(APMACAddress, SSID);
	}
	
	public UUID getDeviceUUID(){
		return deviceUUID;
	}
	
	public HashMap<String, Integer> getSignalSignature(){
		HashMap<String, Integer> retSignature = new HashMap<String, Integer>();
		retSignature.putAll(signalSignature);
		return retSignature;
	}
	
	public Time getTime(){
		return time;
	}

}
